<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-03 00:33:05
 * @LastEditTime: 2023-07-24 15:24:26
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: BOM成品工艺辅料版别
 */

namespace App\Models;

use App\Traits\MaterialTrait;

class ProColorRevItemHistory extends BaseModel
{
    use MaterialTrait;
    protected $casts = [
        'oldrate' => 'double',
        'newrate' => 'double',
        'cost'    => 'double',
    ];
    public $timestamps = true;
    public $table = "basedata_pro_color_item_history";
    protected $guarded = [];

    public function main()
    {
        return $this->belongsTo(ProColorRev::class);
    }
}
